#!/usr/bin/python3
# -*- coding:utf-8 -*-
# @Time : 2018/9/28 下午5:58
# @Author : Desunire
# @projectname : bzShop
# @name: adminx

import xadmin
from xadmin import views
from .models import VerifyCode


class BaseSetting(object):
    enable_themes = True
    use_bootswatch = True


class GlobalSettings(object):
    site_title = "xxxx" \
                 "pppp"
    site_footer = "如果可以，那就不忧伤"
    # menu_style = "accordion"


class VerifyCodeAdmin(object):
    list_display = ['code', 'mobile', "add_time"]


xadmin.site.register(VerifyCode, VerifyCodeAdmin)
xadmin.site.register(views.BaseAdminView, BaseSetting)
xadmin.site.register(views.CommAdminView, GlobalSettings)